package entityMapping.demo1;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "COMPOSITE_KEY_ENTITY")
public class CompositeKeyEntity2 implements Serializable {

    @Id
    @Column(name = "KEY1")
    private String key1;

    @Id
    @Column(name = "KEY2")
    private String key2;

    @Column(name = "VALUE")
    private String value;

    public String getKey1() {
        return key1;
    }

    public void setKey1(String key1) {
        this.key1 = key1;
    }

    public String getKey2() {
        return key2;
    }

    public void setKey2(String key2) {
        this.key2 = key2;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
